<%--
  Created by IntelliJ IDEA.
  User: 贾维斯
  Date: 2022/12/15
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  <link rel="stylesheet" href="css/zc.css">
  <%
    Object msg = request.getAttribute("msg");
  %>
  <title>登录页面</title>
</head>
<body>
<%
  Object login_status = session.getAttribute("login_status");
  if ("OK".equals(login_status))
  {
    response.sendRedirect("main.jsp");
  }
%>

<div class="wrap">
  <div class="form">
    <div class="left" style="background: #F6F6F6">
      <img src="https://img1.baidu.com/it/u=3477249132,1482232606&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=444" width="500px" height="500px">
    </div>
    <div class="right">
      <div class="right-con">
        <form class="form-inline" action="Login">
          <div class="form-group">
            <input type="text" class="text" name="username" placeholder="Name">
          </div>
          <div class="form-group">
            <input type="password" class="text" name="password" placeholder="Password">
          </div>
          <div class="checkbox">
            <label>
              <input type="checkbox" name="remember"> Remember me
            </label>
          </div>
          <button type="submit" class="zc-btn">Sign in</button>
        </form>
        <div style="color:red"> <%= msg!=null ? msg.toString():"" %>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>


